<?php
global $base_dir;
$base_dir='../';

/**** 模块调用*****/
include_once($base_dir."inc/inc_connect.php");		//通用函数包含文件
include_once("index_inc.php");
include_once("func/function.php");
include_once($base_dir."inc/manage.php");			//后台通用包含文件
include_once("../msg/api/msg_mdlAPI.php");					//短信API
?>
<?php
//接收参数
extract($_POST);
switch($act)
{
	case 'showMsg':		//生成短信
		$str=getMsgContent($ordId,$msg_mdl);
		echo $str;
		break;
	case 'sendMsg':		//发送短信
		$str=sendMsg($phone,$msg);
		echo $str;
		break;
	default:
		break;
}
?>
<?
include_once($base_dir."inc/inc_unconnect.php")
?>